package com.shop.service;

import com.shop.entity.Cart;

import java.util.List;

public interface ICartService {

    List<Cart> findCartsByUid(int uid);

    /**
     * 通过登录的这个用户ID删除整个购物车信息
     * @param uid
     * @return
     */
    boolean clear(int uid);

    boolean deleteOne(int cid);

    int update(int cid, int cnum, int ccount);


    boolean insert(Cart cart);
}
